Type Mismatch Error
Occurs when you try to pass a parameter of an incorrect data type to a method or function or use an incorrect data type in an assignment statement. The second line of the error message tells you the data type that REALbasic was expecting and the data type that it received.